<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@include file="/includes.jsp"%>

<h1 class="layout">Advanced Search</h1>

<html:errors/>

<html:form action="advancedSearch.do?method=showAdvancedSearchReport" method="post">
    <html:hidden name="advancedSearchActionForm" property="nodeId"/>
    <table class="layout">
        <tr>
            <th class="layout">Ids:</th>
            <td class="layout"><html:text name="advancedSearchActionForm" property="ids" size="80"/></td>
        </tr>
        <tr>
            <th class="layout">Keywords:</th>
            <td class="layout"><html:text name="advancedSearchActionForm" property="keywords" size="80"/></td>
        </tr>
        <tr>
            <th class="layout">Start Date:</th>
            <td class="layout">
                <html:checkbox name="advancedSearchActionForm" property="includeStart"/>
                <html:select name="advancedSearchActionForm" property="startYear" size="1">
                    <html:options collection="years" property="integer" labelProperty="string"/>
                </html:select>-<html:select name="advancedSearchActionForm" property="startMonth" size="1">
                    <html:options collection="months" property="integer" labelProperty="string"/>
                </html:select>-<html:select name="advancedSearchActionForm" property="startDay" size="1">
                    <html:options collection="days" property="integer" labelProperty="string"/>
                </html:select>
            </td>
        </tr>
        <tr>
            <th class="layout">Stop Date:</th>
            <td class="layout">
                <html:checkbox name="advancedSearchActionForm" property="includeStop"/>
                <html:select name="advancedSearchActionForm" property="stopYear" size="1">
                    <html:options collection="years" property="integer" labelProperty="string"/>
                </html:select>-<html:select name="advancedSearchActionForm" property="stopMonth" size="1">
                    <html:options collection="months" property="integer" labelProperty="string"/>
                </html:select>-<html:select name="advancedSearchActionForm" property="stopDay" size="1">
                    <html:options collection="days" property="integer" labelProperty="string"/>
                </html:select>
            </td>
        </tr>
        <tr>
            <th class="layout">Statuses:</th>
            <td class="layout">
                <html:select multiple="true" size="10" name="advancedSearchActionForm" property="statusIds">
                    <html:options collection="statusPairs" property="integer" labelProperty="string"/>
                </html:select>
            </td>
        </tr>
        <tr>
            <th class="layout">Contactables:</th>
            <td class="layout">
                <html:select multiple="true" size="10" name="advancedSearchActionForm" property="contactableIds">
                    <html:options collection="contactablePairs" property="integer" labelProperty="string"/>
                </html:select>
            </td>
        </tr>
    </table>
    <div class="buttons">
        <html:submit property="btnSubmit" value="OK"/>
        <html:submit property="btnSubmit" value="Cancel"/>
    </div>
</html:form>
